package com.sumainfor.wx.tenant.controller.rentadviser;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.tenant.feign.Zfeign.ZpcMktFeign;
import com.sumainfor.wx.tenant.service.RdTteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.io.Serializable;
import java.util.Map;

/**
 * 业主合同
 */
@RestController
@RequestMapping("/rentadviser/RdTte")
public class RdTteController implements Serializable {
    @Autowired
    private RdTteService rdTteService;
    /**
     * 根据租客编号查询密保问题
     */
    @GetMapping("/getRdTteList")
    public JsonResult getRdTteList(@RequestParam Map<String,Object> params){
        return rdTteService.getRdTteList(params);
    }
    /**
     * 验证密保问题是否正确
     */
    @PostMapping("/getRdTteAnswerList")
    public JsonResult getRdTteAnswerList(@RequestBody Map<String,Object> params){
        return rdTteService.getRdTteAnswerList(params);
    }
    /**
     * 根据租客编号查询密保问题
     */
    @GetMapping("/getRdTteTenantList")
    public JsonResult getRdTteTenantList(@RequestParam Map<String,Object> params){
        return rdTteService.getRdTteTenantList(params);
    }

}
